<template>
   <div>
    <h1>音乐：</h1>
    <p>music.name:{{music.name}}</p>
    <p>music.singer:{{music.singer}}</p>
  </div>
</template>

<script setup>
import {inject} from "vue";

const music = inject("music");

console.log("music",music);

</script>

<style scoped>

</style>